package com.njtoyo.taxi.admin.rest.wrapper.marketing.couponTemplate;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.mapper.master.entity.CouponTemplate;
import com.njtoyo.taxi.admin.mapper.master.enums.CouponCategory;
import com.njtoyo.taxi.admin.mapper.master.enums.CouponScope;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Objects;

@Data
@ApiModel("优惠券模板列表")
public class CouponListWrapper extends Page<CouponTemplate> {

    public CouponListWrapper(Long current, Long size) {
        super(Objects.isNull(current) ? 1 : current, Objects.isNull(size) ? 15 : size);
    }

    @ApiModelProperty(value = "商品标题")
    private String title;

    @ApiModelProperty(value = "优惠券类型")
    private CouponCategory category;


    @ApiModelProperty(value = "适用范围：0:mix,1:realtime,2:appointment")
    private CouponScope scope;

//    @ApiModelProperty(value = "适用平台 0:mix[通用],1:app,2:wxmina[小程序],3:h5")
//    private CouponPlatform platform;


}
